package com.zhongkai.model3;

import org.hibernate.annotations.GenericGenerator;

import javax.persistence.*;
import java.io.Serializable;
import java.util.Objects;

@Entity
@Table(name = "sell",    catalog = "")
public class Sell implements Serializable {
    private Long id;
    private String sellUuid;
    private String setUuid;
    private Long sellTime;
    private String sellName;
    private String sellPrice;
    private int sellCount;
    private String sellSum;
    private String sellClient;
    private String sellNumber;
    private Integer sellStatus;
    private String sellMember;
    private String memberUuid;
    private String outName;
    private String outUuid;
    private Long outTime;
    private String sellRemove;
    private String isOut; //是否出库
    private Long removeTime;

    private String intRatify; //审核人员姓名

    private String auditUuid;
    private String remark; //驳回原因

    private Long ratifyTime;

    @Basic
    @Column(name = "out_uuid")
    public String getOutUuid() {
        return outUuid;
    }

    public void setOutUuid(String outUuid) {
        this.outUuid = outUuid;
    }

    @Basic
    @Column(name = "remark")
    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    @Basic
    @Column(name = "ratify_time")
    public Long getRatifyTime() {
        return ratifyTime;
    }

    public void setRatifyTime(Long ratifyTime) {
        this.ratifyTime = ratifyTime;
    }


    @Basic
    @Column(name = "audit_uuid")
    public String getAuditUuid() {
        return auditUuid;
    }

    public void setAuditUuid(String auditUuid) {
        this.auditUuid = auditUuid;
    }


    @Basic
    @Column(name = "int_ratify")
    public String getIntRatify() {
        return intRatify;
    }

    public void setIntRatify(String intRatify) {
        this.intRatify = intRatify;
    }

    @Basic
    @Column(name = "is_out")
    public String getIsOut() {
        return isOut;
    }

    public void setIsOut(String isOut) {
        this.isOut = isOut;
    }

    @Basic
    @Column(name = "set_uuid")
    public String getSetUuid() {
        return setUuid;
    }

    public void setSetUuid(String setUuid) {
        this.setUuid = setUuid;
    }

    @Id
    @GenericGenerator(name = "generator", strategy = "increment")
    @GeneratedValue(generator = "generator")
    @Column(name = "id")
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    @Basic
    @Column(name = "sell_uuid")
    public String getSellUuid() {
        return sellUuid;
    }

    public void setSellUuid(String sellUuid) {
        this.sellUuid = sellUuid;
    }



    @Basic
    @Column(name = "sell_time")
    public Long getSellTime() {
        return sellTime;
    }

    public void setSellTime(Long sellTime) {
        this.sellTime = sellTime;
    }

    @Basic
    @Column(name = "sell_name")
    public String getSellName() {
        return sellName;
    }

    public void setSellName(String sellName) {
        this.sellName = sellName;
    }

    @Basic
    @Column(name = "sell_price")
    public String getSellPrice() {
        return sellPrice;
    }

    public void setSellPrice(String sellPrice) {
        this.sellPrice = sellPrice;
    }

    @Basic
    @Column(name = "sell_count")
    public int getSellCount() {
        return sellCount;
    }

    public void setSellCount(int sellCount) {
        this.sellCount = sellCount;
    }

    @Basic
    @Column(name = "sell_sum")
    public String getSellSum() {
        return sellSum;
    }

    public void setSellSum(String sellSum) {
        this.sellSum = sellSum;
    }

    @Basic
    @Column(name = "sell_client")
    public String getSellClient() {
        return sellClient;
    }

    public void setSellClient(String sellClient) {
        this.sellClient = sellClient;
    }

    @Basic
    @Column(name = "sell_number")
    public String getSellNumber() {
        return sellNumber;
    }

    public void setSellNumber(String sellNumber) {
        this.sellNumber = sellNumber;
    }

    @Basic
    @Column(name = "sell_status")
    public Integer getSellStatus() {
        return sellStatus;
    }

    public void setSellStatus(Integer sellStatus) {
        this.sellStatus = sellStatus;
    }

    @Basic
    @Column(name = "sell_member")
    public String getSellMember() {
        return sellMember;
    }

    public void setSellMember(String sellMember) {
        this.sellMember = sellMember;
    }

    @Basic
    @Column(name = "member_uuid")
    public String getMemberUuid() {
        return memberUuid;
    }

    public void setMemberUuid(String memberUuid) {
        this.memberUuid = memberUuid;
    }

    @Basic
    @Column(name = "out_name")
    public String getOutName() {
        return outName;
    }

    public void setOutName(String outName) {
        this.outName = outName;
    }

    @Basic
    @Column(name = "out_time")
    public Long getOutTime() {
        return outTime;
    }

    public void setOutTime(Long outTime) {
        this.outTime = outTime;
    }

    @Basic
    @Column(name = "sell_remove")
    public String getSellRemove() {
        return sellRemove;
    }

    public void setSellRemove(String sellRemove) {
        this.sellRemove = sellRemove;
    }

    @Basic
    @Column(name = "remove_time")
    public Long getRemoveTime() {
        return removeTime;
    }

    public void setRemoveTime(Long removeTime) {
        this.removeTime = removeTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Sell sell = (Sell) o;
        return Objects.equals(id, sell.id) &&
                Objects.equals(sellUuid, sell.sellUuid) &&
                Objects.equals(setUuid, sell.setUuid) &&
                Objects.equals(sellTime, sell.sellTime) &&
                Objects.equals(sellName, sell.sellName) &&
                Objects.equals(sellPrice, sell.sellPrice) &&
                Objects.equals(sellCount, sell.sellCount) &&
                Objects.equals(sellSum, sell.sellSum) &&
                Objects.equals(sellClient, sell.sellClient) &&
                Objects.equals(sellNumber, sell.sellNumber) &&
                Objects.equals(sellStatus, sell.sellStatus) &&
                Objects.equals(sellMember, sell.sellMember) &&
                Objects.equals(memberUuid, sell.memberUuid) &&
                Objects.equals(outName, sell.outName) &&
                Objects.equals(outTime, sell.outTime) &&
                Objects.equals(sellRemove, sell.sellRemove) &&
                Objects.equals(removeTime, sell.removeTime);
    }

    @Override
    public int hashCode() {

        return Objects.hash(id, sellUuid, setUuid, sellTime, sellName, sellPrice, sellCount, sellSum, sellClient, sellNumber, sellStatus, sellMember, memberUuid, outName, outTime, sellRemove, removeTime);
    }
}
